<!--
 saveData() 保存数据的方法

------

 入参：
 flowId： 流程id
 nodeId： 节点id
 flowInstId： 流程实例id
 nodeInstId： 节点实例id
 isOperate:  操作类型  如果是insert，则会查询check item表，保存到 check item inst表中;
                       如果是update，则会查询check item inst表中，保存到 check item inst表中;
                       如果是不填或者其他，则会先去check item inst表中查询是否有对应节点实例的数据，如果有则返回，如果没有，则会去查询check item表，保存方法，会根据查询结果对应保存或者更新到check item inst表中;
-->
<template>
  <div style="position: relative;">
    <div style="padding-left:15px;background: #FFFFFF; display: block;" v-if="visible">
      <p class="pStyle" v-if="visible">请负责人填写信息，其他相关方知悉</p>
    </div>
  </div>
</template>

<script>
/** mixins */
import { mixin_list } from '@tapui/mixins/mixin_list'
import { mixin_approval } from '@tapui/mixins/mixin_approval'
/** 子组件 */
/** 工具类 */
import { getAction, putAction } from '@tapui/utils/http'
import { validateNull } from '@tapui/utils/validate'

/** VUE配置 */
export default {
  mixins: [mixin_list, mixin_approval],
  components: {},
  data() {
    return {
      moduleTitle: '检查项',
      urlPrefix: '/base/flowCheckItem/',
      url: {
        // 额外的url
        queryCheckItem: '/base/flowCheckItem/queryList',
        queryInstCheckItem: '/base/flowCheckItemIns/queryList',
        queryCodeList: '/base/flowCheckItemIns/dataCodeList',
        add: '/base/flowCheckItemIns/add'
      },
      isQueryOnCreated: false,
      model: {},
      pageInfo: {
        currentPage: 1, // 当前页面
        pageSize: 0, // 每页记录数
        pageSizes: ['10', '50', '100'],
        totalCount: 0 // 总数
      },
      approvalNodeModel: {},
      disableEditSubmit: false,
      visible: false,
      tableHeight: 0,
      sourceType: '',
      flowid: 0,
      nodeid: 0,
      flowinsid: 0,
      nodeinsid: 0,
      saveLoading: false
    }
  },
  props: {
    render: {
      default: 'div',
      type: String
    },
    // 操作类型
    operate: {
      default: '',
      type: String
    }
  },
  methods: {
    close() {
      this.visible = false
    },
    open() {
      this.visible = true
    },
    resizeHandler() {}
  },
  created() {
    this.visible = false
  }
}
</script>
<style scoped>
.pStyle {
  color: #409eff;
  font-size:14px;
}
</style>
